package cn.tedu.egmybatis1.mapper;

import cn.tedu.egmybatis1.pojo.entity.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

@Mapper
public interface ProductMapper {

    @Insert(
            "INSERT INTO product(id,title,price,stock) " +
                    "VALUES(#{id},#{title},#{price},#{stock})"
    )
    int insert(Product product);
}
